home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Forcing a draw.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.5 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Forcing a draw
  2. Sent:        5/17/96 10:33 AM
  3. Received:    5/17/96 10:51 AM
  4. From:        Bill Finzer, bfinzer@mail.keypress.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Subject:  RE>>Forcing a draw                Time: 10:32 AM    Date:5/17/96
  9.  
  10. >>In a DoMouseDown of a subView, the user is dragging a point in a graph,
  11. thus
  12. >>changing the data in the model layer. The model has dependents, including
  13. >>some views, which are notified of the change. The views need to redraw
  14. >>themselves immediately; i.e., without waiting for an update, so that the
  15. user
  16. >>gets feedback about the effects of the drag during the drag.
  17. >>
  18. >>I have been unable to discover any way to force an immediate redraw of an
  19. >>individual view. Can anyone help me?
  20. >>
  21. >>I'm using ODF d11 and downloading ODF 1.0 as I write.
  22. >>
  23. >>Bill Finzer
  24. >>Key Curriculum Press
  25. >
  26. >This easiest way would be to call Invalidate on the view and immediately 
  27. >call Draw. We need to add a ForceRedraw method.
  28. >
  29. >.......................................................................
  30. > Henri Lamiraux                                      lamiraux@apple.com
  31. > Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  32. >.......................................................................
  33.  
  34. The interface Draw(Environment *ev, ODFacet* odFacet, ODShape* invalidShape)
  35. requires an ODFacet. How does a plain old FW_CView get hold of the right
  36. facet?
  37.  
  38. Bill Finzer
  39. Key Curriculum Press
  40.